<%= form_tag admin_import_products_path, :multipart => true, :remote => true do %>
  <% if !@errors.blank? %>
        <%= render :partial => 'shared/error_messages', :locals => { :errors => @errors } %>
  <% elsif !@not_imported.blank? %>
        <%= render :partial => 'import_errors', :locals => { :errors => @not_imported } %>
  <% elsif @success == true %>
    <div class="success-box"><p>Los productos han sido importados exitosamente</p></div>
  <% end %>

  <%= file_field_tag :file %>
  <%= submit_tag "Importar" %>
<% end %>